From ee2ce028836fc5feda9f42dac1359fa721f30cd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sat, 20 Jul 2019 17:15:29 +0200 Subject: [PATCH] babl-fish: use abstraction for checking if space is cmyk --- babl/babl-fish.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/babl/babl-fish.c b/babl/babl-fish.c index a3d299c..8ce2144 100644 --- a/babl/babl-fish.c +++ b/babl/babl-fish.c @@ -282,10 +282,11 @@ babl_fish (const void *source, const Babl *dst_space = (void*)destination_format->format.space; /* we haven't tried to search for suitable path yet */ - if (src_space->space.cmyk.is_cmyk == 0 && - dst_space->space.cmyk.is_cmyk == 0) + if (!babl_space_is_cmyk (src_space) && + !babl_space_is_cmyk (dst_space)) { Babl *fish_path = babl_fish_path (source_format, destination_format); + if (fish_path) { return fish_path; -- 2.30.2